package com.woniuxy.secondhand.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 二手收藏
 * </p>
 *
 * @author chaohuijiang
 * @since 2020-09-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("SEC_COLLECTS")
@ApiModel(value="SecCollects对象", description="二手收藏")
@KeySequence("SEC_COLLT")
public class SecCollects implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "编号")
    @TableId(value = "COLLECTS_ID",type = IdType.INPUT)
    private Integer collectsId;

    @ApiModelProperty(value = "商品编号")
    @TableField("GOODSID")
    private Integer goodsid;

    @ApiModelProperty(value = "软删除")
    @TableField("FLAG")
    private Integer flag;

    @ApiModelProperty(value = "创建时间")
    @TableField("CREATETIME")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createtime;


}
